package Cryptointerface

//TCP协议，自定义协议
//消息中间件  string, GRPC ,
//GRPC 算法可以切换，算法灵活度可以调整
type ServerCrypto interface {
	ToCryptoString(Data string) string
	GetResultString(CryptoData string) (string, bool)
	GetPassword() string

	ToCrypto(Data []byte) []byte
	GetResult(CryptoData []byte) ([]byte, bool)
}
type ClientCrypto interface {
	ToCryptoString(Data string) string
	GetResultString(CryptoData string) (string, bool)

	ToCrypto(Data []byte) []byte
	GetResult(CryptoData []byte) ([]byte, bool)
}
type Crypto interface {
	ToCryptoString(Data string) string
	GetResultString(CryptoData string) (string, bool)

	ToCrypto(Data []byte) []byte
	GetResult(CryptoData []byte) ([]byte, bool)
}
